package com.website.quartz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.website.common.vo.Result;
import com.website.mybatis.entity.Quartz;
import com.website.quartz.mgr.QuartzTimerMgr;

import java.util.List;

/**
 *
 * <p>@author zhangshuw
 * <p>2018/7/27
 */
public interface QuartzTimerService {


    /**
     *
     * Description: 查询可启动的作业
     *
     * @return List<Quartz>
     * Create Date: 2013-11-2 下午1:46:04
     */
    List<Quartz> findJobs();

    IPage<Quartz> getPage(Quartz model, int page, int size);

    Result add(Quartz model);

    Result del(Long id);

    Result updStart(Long id);

    Result updStop(Long id);

    Result update(Quartz model);

    QuartzTimerMgr getMgr();
}
